/*
 * Copyright (c) 2015 Messcat. All rights reserved.
 * 
 */
package cc.messcat.service.system;

import java.util.List;

import cc.messcat.common.model.Pager;
import cc.messcat.common.service.BaseService;
import cc.messcat.entity.area.Area;
import cc.messcat.entity.system.Role;

/**
 * 角色接口
 *
 * @author Panda
 * @version 1.0
 */
public interface RoleService extends BaseService<Role>{

	void addRole(Role role, Long[] permissionss);

	void modifyRole(Role role, Long[] permissionss);

	Long removeRole(Long id);

	Role retrieveRoleById(Long id);

	Pager retrieveRoleAll(Integer pageNo, Integer pageSize);

	boolean isExistRoles(String roles, Long id);

	Pager<Role> retrieveRoleAllFilter(Integer pageNo, Integer pageSize);
	
//	List<Role> retrieveRoleByArea(Area area);
}
